<template>
	<view style="position: relative;">
		<view class="search" v-if="!showSearch">
			<view class="back"><image src="../../static/images/back_blue.png" class="back-icon"></image></view>
			<view class="title">通知</view>
			<image src="../../static/images/search.png" class="search-icon" @click="showSearch = true" v-if="!showManage"></image>
					<view class="cancel-red" v-if="showManage" @click="showManage = false">取消</view>
		</view>
		<view class="search" v-if="showSearch">
			<image src="../../static/images/search.png" class="search-icon" style="margin-left: 10px;"></image>
			<view style="width: calc(100% - 120px);"> 
						<u-input placeholder="单行输入" style="font-size: 20px;" placeholder-style="font-size:20px" fontSize="20" border="none" class="search-class" ></u-input>
			</view>
			<view class="cancel" @click="showSearch = false">取消</view>
		</view>
		<view class="box">
			<view class="row" style="margin-top: 30px;" v-for="(item,index) in 3">
				<image src="../../static/images/mail.png" class="icon"></image>
				<view class="text">通知内容{{index}}</view>
			</view>
		</view>
		<view style="height: 120px;" v-if="!showSearch"></view>
		<view class="bottom" v-if="!showSearch">
			<view class="btn" @click="showManage = true" v-if="!showManage">
				管&nbsp;&nbsp理
			</view>
			<view class="choose"  v-if="showManage">
				<view class="all">全部选择</view>
				<view class="row-w-center"><view class="all">删除</view><image src="../../static/images/delete.png" style="width: 30px;height: 30px;margin-top: -5px;"></image></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				showSearch:false,
				showManage:false
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	page{
		background-color: white;
	}
.box{
	margin-top: 20px;
	min-height: 400px;
	margin-left: 20px;
	margin-right: 20px;
	width: calc(100% - 40px);
	line-height: 20px;
	border-radius: 25px;
	background-color: rgba(255, 255, 255, 1);
	color: rgba(16, 16, 16, 1);
	font-size: 14px;
	text-align: center;
	font-family: Arial;
	border: 3px solid rgba(79, 79, 79, 1);
	display: flex;
	flex-direction: column;
}
.search{
	margin-left: 20px;
	margin-right: 20px;
	width: calc(100% - 40px);
	height: 60px;
	line-height: 20px;
	border-radius: 25px;
	background-color: rgba(255, 255, 255, 1);
	color: rgba(16, 16, 16, 1);
	font-size: 14px;
	text-align: center;
	font-family: Arial;
	border: 3px solid rgba(79, 79, 79, 1);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.icon{
	margin-left: 50px;
	width: 30px;
	height: 30px;
}
.text{
		font-family: HappyZcool-2016;
	margin-left: 10px;
	color: rgba(16, 16, 16, 1);
	font-size: 20px;
	text-align: left;
}
.back{
	margin-left: 10px;
	width: 40px;
	height: 40px;
	background-color: rgba(147, 210, 243, 1);
	text-align: center;
	border: 3px solid rgba(79, 79, 79, 1);
	display: flex;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
}
.title{
	color: rgba(79, 79, 79, 1);
	font-size: 28px;
	text-align: center;
font-family: HappyZcool-2016;
}
.search-icon{
	width: 40px;
	height: 40px;
}
.back-icon{
	width: 19px;
	height: 19px;
}
.cancel{
	white-space:nowrap;
	margin-right: 10px;
	color: rgba(64, 149, 229, 1);
	font-size: 28px;
	text-align: center;
font-family: HappyZcool-2016;
margin-right: 30px;
}
.cancel-red{
	margin-right: 10px;
	color:#E99D42 ;
	font-size: 28px;
	text-align: center;
font-family: HappyZcool-2016;
}
.bottom{
	width: 100vw;
	position: fixed;
	bottom: 0;
	height: 100px;
	line-height: 20px;
	border-radius: 25px 25px 0 0 ;
	background-color: rgba(255, 255, 255, 1);
	text-align: center;
	border: 3px solid rgba(79, 79, 79, 1);
	display: flex;
	justify-content: center;
}
.btn{
	margin-top: 16px;
	margin-left: 20px;
	margin-right: 20px;
	width: calc(100% - 40rpx);
	height: 50px;
	line-height: 20px;
	border-radius: 20px;
	font-family: HappyZcool-2016;
	font-size: 32px;
	color: rgba(16, 16, 16, 1);
	background-color: rgba(255, 191, 107, 1);
	text-align: center;
	border: 3px solid rgba(79, 79, 79, 1);
	display: flex;
	align-items: center;
	justify-content: center;
}
.all{
	color: rgba(16, 16, 16, 1);
	font-size: 28px;
	font-family: HappyZcool-2016;
}
.cancel{
	width: 30px;
	height: 30px;
}
.choose{
	display: flex;
	justify-content: space-between;
	margin-left: 20px;
	margin-right: 20px;
	align-items: center;
	width: calc(100% - 40rpx);
	
}
</style>
